﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
          //HttpWebRequest request = new HttpWebRequest();
        }

        private void buttonMenu_Click(object sender, EventArgs e)
        {
            this.panelRightMain.Controls.Clear();
            Form2 sub = new Form2();
            sub.TopLevel = false;
            sub.Dock = DockStyle.Top;//把子窗体设置为控件

            sub.FormBorderStyle = FormBorderStyle.None;
            this.panelRightMain.Controls.Add(sub);
            sub.Show();
        }

        private void buttonMenu3_Click(object sender, EventArgs e)
        {
            this.panelRightMain.Controls.Clear();
            Form3 sub = new Form3();
            sub.TopLevel = false;
            sub.Dock = DockStyle.Top;//把子窗体设置为控件

            sub.FormBorderStyle = FormBorderStyle.None;
            this.panelRightMain.Controls.Add(sub);
            sub.Show();
        }
    }
}
